﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QLVB/User/User.master" AutoEventWireup="true" CodeFile="DuyetSoanThao.aspx.cs" Inherits="QLVB_User_DuyetSoanThao" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style3
        {
            width: 360px;
            text-align: left;
        }
    .style10
    {
    }
        .style24
        {
            height: 23px;
        }
        .style26
        {
            width: 130px;
            height: 23px;
        }
        .style28
        {
            width: 1000px;
            text-align: center;
            height: 23px;
        }
        .style33
        {
            height: 23px;
            width: 30px;
        }
        .style34
        {
            width: 100px;
        }
        .style35
        {
            height: 23px;
            width: 110px;
        }
        .style36
        {
            width: 30px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 708px; border:double;">
        <tr>
            <td class="style10" colspan="3" align="center">
                <asp:Label ID="lblTieuDe" runat="server" Text="&nbsp;DUYỆT SOẠN THẢO VĂN BẢN" 
                    style="text-decoration: underline"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style10" colspan="3">
                <asp:CheckBox ID="chkChonTatCa" runat="server" Text="Chọn tất cả" 
                    AutoPostBack="True" oncheckedchanged="chkChonTatCa_CheckedChanged" />
            </td>
        </tr>
        <tr>
            <td class="style10" colspan="3">
                <asp:GridView ID="gvDuyetSoanThao" runat="server" AutoGenerateColumns="False" 
                    Width="100%" DataKeyNames="MaVanBan" 
                    onpageindexchanging="gvDuyetSoanThao_PageIndexChanging" AllowPaging="True" 
                    Caption="VĂN BẢN CHỜ DUYỆT" onrowdatabound="gvDuyetSoanThao_RowDataBound">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="chkMaVanBan" runat="server" />
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width: 100%;">
                                    <tr>
                                        <td class="style34">
                                            <asp:Label ID="lblSoVanBan_" runat="server" Text="Số văn bản"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblSoVanBan" runat="server" Text='<%# Eval("SoVanBan") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style34">
                                            <asp:Label ID="lblTenVanBan_" runat="server" Text="Tên văn bản"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblTenVanBan" runat="server" Text='<%# Eval("TenVanBan") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style34">
                                            <asp:Label ID="lblMaNguoiSoanThao_" runat="server" Text="Người cập nhật::"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMaNguoiSoanThao" runat="server" 
                                                Text='<%# Eval("MaNguoiSoanThao") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style34">
                                            <asp:Label ID="lblNgaySoanThao_" runat="server" Text="Ngày soạn thảo"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblNgaySoanThao" runat="server" 
                                                Text='<%# Eval("NgaySoanThao") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style34">
                                            <asp:Label ID="lblNgayHieuLuc_" runat="server" Text="Ngày phát hành VB"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblNgayHieuLuc" runat="server" Text='<%# Eval("NgayHieuLuc") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style34">
                                            <asp:Label ID="lblNgayHetHieuLuc_" runat="server" SkinID=" " 
                                                Text="Ngày CN nhận VB"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblNgayHetHieuLuc" runat="server" 
                                                Text='<%# Eval("NgayHetHieuLuc") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style34">
                                            <asp:Label ID="lblMaLoaiVanBan_" runat="server" Text="Loại văn bản:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMaLoaiVanBan0" runat="server" 
                                                Text='<%# Eval("MaLoaiVanBan") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style34">
                                            <asp:Label ID="lblMaHinhThuc_" runat="server" Text="Hình thức:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMaHinhThuc0" runat="server" Text='<%# Eval("MaHinhThuc") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style34">
                                            <asp:Label ID="lblMaTinhChat_" runat="server" Text="Tính chất:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMaTinhChat0" runat="server" Text='<%# Eval("MaTinhChat") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style34">
                                            <asp:Label ID="lblTenDonViSoanThao_" runat="server" 
                                                Text="Tên đơn vị soạn thảo:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblTenDonViSoanThao" runat="server" 
                                                Text='<%# Eval("TenDonViSoanThao") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style34">
                                            <asp:Label ID="lblNoiDungVanBan_" runat="server" Text="Nội dung văn bản:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblNoiDungVanBan" runat="server" 
                                                Text='<%# Eval("NoiDungVanBan") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style33">
                                            <asp:Label ID="lblNoiDungButPhe_" runat="server" Text="Nội dung bút phê:" 
                                                ForeColor="Red"></asp:Label>
                                        </td>
                                        <td class="style35">
                                            <asp:TextBox ID="txtNoiDungButPhe" runat="server" BackColor="#FFFF99" 
                                                ForeColor="Red" Width="99%" Text='<%# Eval("NoiDungButPhe") %>'></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style34">
                                            <asp:Label ID="lblNoiNhan_" runat="server" Text="Nơi nhận"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblNoiNhan" runat="server" Text="Label"></asp:Label>
                                        </td>
                                    </tr>
                                    
                                    <tr>
                                        <td class="style34">
                                            <asp:Label ID="lblMaTrangThai_" runat="server" Text="Trạng thái"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMaTrangThai" runat="server" Text='<%# Eval("MaTrangThai") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    
                                    <tr>
                                        <td class="style34">
                                            <asp:Label ID="lblFileDinhKem_" runat="server" Text="File đính kèm"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:HyperLink ID="hlnkFileDinhKem" runat="server" 
                                                NavigateUrl='<%# "../VanBanLuuTru" + "/" + Eval("TenFile") %>' 
                                                Text='<%# Eval("TenFile") %>'></asp:HyperLink>
                                        </td>
                                    </tr>
                                    
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td class="style24">
                </td>
            <td class="style28">
                <asp:Button ID="btnDuyet" runat="server" Text="Duyệt" Width="100px" 
                    onclick="btnDuyet_Click" />
                <asp:Button ID="btnTuChoi" runat="server" Text="Từ chối" Width="100px" 
                    onclick="btnTuChoi_Click" />
                <br />
            </td>
            <td class="style24">
                </td>
        </tr>
        </table>
</asp:Content>

